#ifndef TIMELINE_H
#define TIMELINE_H

#include <QtUiPlugin/QDesignerExportWidget>

#include <QWidget>
#include <QLabel>
#include <QString>
#include <QMap>

namespace Ui {
class TimeLine;
}

class QDESIGNER_WIDGET_EXPORT TimeLine : public QWidget {
    Q_OBJECT

public:
    explicit TimeLine(QWidget *parent = 0);

protected:
    virtual void paintEvent(QPaintEvent *);

private:
    struct regTime{
        int hour=0;
        int minute=0;
        int second=0;
    } curTime;
    QString regulateTime(regTime, int);
};

#endif // TIMELINE_H
